﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for ErrorLog
/// </summary>

namespace CE.Log
{
    public class ErrorLog
    {
        public ErrorLog()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFileds();
        }
        private Int64 _logid;
        private Int64 _proposalid;
        private Int64 _refid;
        private Int64 _providercompanyid;
        private string _producttype;
        private string _orderno;
        private string _errormessage;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public Int64 LogId
        {
            get { return _logid; }
            set { _logid = value; }
        }

        public Int64 ProposalId
        {
            get { return _proposalid; }
            set { _proposalid = value; }
        }

        public Int64 RefId
        {
            get { return _refid; }
            set { _refid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyid; }
            set { _providercompanyid = value; }
        }

        public string ProductType
        {
            get { return _producttype; }
            set { _producttype = value; }
        }

        public string OrderNo
        {
            get { return _orderno; }
            set { _orderno = value; }
        }

        public string ErrorMessage
        {
            get { return _errormessage; }
            set { _errormessage = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFileds()
        {
            _logid = 0;
            _proposalid = 0;
            _refid = 0;
            _providercompanyid = 0;
            _producttype = "";
            _orderno = "";
            _errormessage = "";
            _createddate = new DateTime(1900, 1, 1);
            _modifieddate = new DateTime(1900, 1, 1);
        }
    }
}
